package com.itheima.service;

import com.itheima.pojo.Account;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(
        isolation = Isolation.DEFAULT,
        timeout = -1,
        propagation = Propagation.REQUIRED
)
public interface AccountService {

    List<Account> findAll();
}
